﻿namespace NTLib.Core.UTest.Collection
{
    using System;
    using System.Text;
    using System.Collections.Generic;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using NTLib.Core.Collection;

    /// <summary>
    /// Summary description for QueueExtUTest
    /// </summary>
    [TestClass]
    public class QueueExtUTest
    {

        #region Method

        [TestCategory("Core.Collection")]
        [TestMethod]
        public void QueueExt_RemoveItem()
        {
            Queue<int> qIt = new Queue<int>(new int[] { 1, 2, 3, 4 });

            qIt.RemoveItem(2);

            var array = qIt.ToArray();

            Assert.AreEqual(array.Length, 3);
            Assert.AreEqual(array[0], 1);
            Assert.AreEqual(array[1], 3);
            Assert.AreEqual(array[2], 4);
        }

        #endregion
    }
}
